Draft
Conversation
Owner
l0rinc
commented
Jan 4, 2026
Add a Windows UTF-8-to-wide conversion helper using `MultiByteToWideChar(CP_UTF8, ...)`, so call sites can avoid deprecated `<codecvt>` / `std::wstring_convert` conversions.
Clang warns that `std::wstring_convert` and `std::codecvt_utf8_utf16<wchar_t>` are deprecated. Use the shared `util::Utf8ToWide` helper when preparing wide strings for Windows APIs in `runCommand`, `ExecVp`, and `subprocess`.
When building for Windows, the fork/exec-specific `detail::Child` helper and `Popen::child_pid_` are compiled out, leaving their members unused and triggering `-Wunused-private-field` warnings. Guard these POSIX-only declarations with `#ifndef __USING_WINDOWS__`.
Clang `-Wunused-member-function` warns about the unused `ScopedHandle::operator=(ScopedHandle&&)` helper in `env_windows.cc`. Remove it since this is an internal type only moved via construction, and keeping the dead operator provides no benefit.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.